import request from '@/utils/request'

// 查询心率传感器数据列表
export function listHeartRateSensor(query) {
  return request({
    url: '/system/heartRateSensor/list',
    method: 'get',
    params: query
  })
}

// 查询心率传感器数据详细
export function getHeartRateSensor(id) {
  return request({
    url: '/system/heartRateSensor/' + id,
    method: 'get'
  })
}

// 新增心率传感器数据
export function addHeartRateSensor(data) {
  return request({
    url: '/system/heartRateSensor',
    method: 'post',
    data: data
  })
}

// 修改心率传感器数据
export function updateHeartRateSensor(data) {
  return request({
    url: '/system/heartRateSensor',
    method: 'put',
    data: data
  })
}

// 删除心率传感器数据
export function delHeartRateSensor(id) {
  return request({
    url: '/system/heartRateSensor/' + id,
    method: 'delete'
  })
}
